import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [{
      path: '/homepage',
      name: 'homepage',
      component: () =>
        import('./views/homepage/homepage.vue'),
      children: [{
          path: '/',
          name: 'Content',
          component: () =>
            import('./views/Content/Content.vue')
        },
        {
          path: '/talent',
          name: 'talent',
          component: () =>
            import('./views/talent/talent.vue')
        },
        {
          path: '/enterprise',
          name: 'enterprise',
          component: () =>
            import('./views/enterprise/enterprise.vue')
        },
        //字段面板
        {
          path: '/frontPanel',
          name: 'frontPanel',
          component: () =>
            import('./views/frontPanel/frontPanel.vue')
        },
        //    人才审核 TalentReview
        {
          path: '/TalentReview',
          name: 'TalentReview',
          component: () =>
            import('./views/TalentReview/TalentReview.vue')
        },
        {
          path: '/audit',
          name: 'audit',
          component: () =>
            import('./views/audit/audit.vue'),
          children: [{
            path: '/audit/OnlineResume', //在线简历
            name: 'OnlineResume',
            component: () =>
              import('./views/audit/OnlineResume/OnlineResume.vue'),
          }]
        },
        //企业审核
        {
          path: '/EnterpriseAudit',
          name: 'EnterpriseAudit',
          component: () =>
            import('./views/EnterpriseAudit/EnterpriseAudit.vue')
        },
        {
          path: '/EnterpriseCont/:id',
          name: 'EnterpriseCont',
          component: () =>
            import('./views/EnterpriseCont/EnterpriseCont.vue')
        },
        {
          path: '/EnterpriseDataCont/:id',
          name: 'EnterpriseDataCont',
          component: () =>
            import('./views/enterpriseManage/EnterpriseDataCont.vue')
        },
        //企业审核-职位信息
        // {
        //     path: '/EnterpriseCont',
        //     name: 'EnterpriseCont',
        //     component: () =>
        //         import ('./components/EnterpriseCont/EnterpriseCont.vue')
        // },
        //    服务管理-企业发布职位
        {
          path: '/JobPosting',
          name: 'JobPosting',
          component: () =>
            import('./views/JobPosting/JobPosting.vue')
        },
        //服务管理-企业发布职位-审核
        // {
        //   path: '/ServiceAudit',
        //   name: 'ServiceAudit',
        //   component: () =>
        //     import('./views/ServiceAudit/ServiceAudit.vue')
        // },
        {
          path: '/ServiceAudit',
          name: 'ServiceAudit',
          component: () =>
            import('./views/ServiceAudit/index.vue')
        },
        //服务管理-企业职位列表
        {
          path: '/Joblist',
          name: 'Joblist',
          component: () =>
            import('./views/Joblist/Joblist.vue')
        },
        //服务管理-人才简历管理
        {
          path: '/TalentResume',
          name: 'TalentResume',
          component: () =>
            import('./views/TalentResume/TalentResume.vue')
        },
        //服务管理-企业
        {
          path: '/Personnel1/:id',
          name: 'Personnel1',
          component: () =>
            import('./views/Personnel/Personnel1.vue'),
        },
        //服务管理-确认入职
        {
          path: '/Personnel2/:id',
          name: 'Personnel2',
          component: () =>
            import('./views/Personnel/Personnel2.vue'),
        },
        //服务管理-保证期
        {
          path: '/Personnel3/:id',
          name: 'Personnel3',
          component: () =>
            import('./views/Personnel/Personnel3.vue'),
        },
        //  人才简历管理-人才信息
        {
          path: '/Personnel/:id',
          name: 'Personnel',
          component: () =>
            import('./views/Personnel/Personnel.vue'),
          children: [{
              path: '/Personnel/report',
              name: 'report',
              component: () =>
                import('./views/Personnel/report/report.vue')
            },
            //推荐报告
            {
              path: '/Personnel/talentInfor',
              name: 'talentInfor',
              component: () =>
                import('./views/Personnel/talentInfor/talentInfor.vue'),
              children: [
                //人才信息
                {
                  path: '/Personnel/talentInfor/basicDetail',
                  name: 'basicDetail',
                  component: () =>
                    import('./views/Personnel/talentInfor/basicDetail/basicDetail.vue'),
                },
                //手动填写
                {
                  path: '/Personnel/talentInfor/manual',
                  name: 'manual',
                  component: () =>
                    import('./views/Personnel/talentInfor/manual/manual.vue'),
                }
              ]
            }
          ]
        },
        //    生成的候选人报告模板
        {
          path: '/ReportModel',
          name: 'ReportModel',
          component: () =>
            import('./views/ReportModel/ReportModel.vue'),
        },
        //企业申请沟通
        {
          path: '/Corporate',
          name: 'Corporate',
          component: () =>
            import('./views/Corporate/Corporate.vue')
        },
        //人才确认入职
        {
          path: '/induction',
          name: 'induction',
          component: () =>
            import('./views/induction/induction.vue')
        },
        {
          path: '/talentPersonnel',
          name: 'talentPersonnel',
          component: () =>
            import('./views/talentPersonnel/talentPersonnel.vue')
        },
        //人才保证期
        {
          path: '/Guarantee',
          name: 'Guarantee',
          component: () =>
            import('./views/Guarantee/Guarantee.vue')
        },
        //    财务管理-企业职位佣金  bonus
        {
          path: '/commission',
          name: 'commission',
          component: () =>
            import('./views/commission/commission.vue')
        },
        //    财务管理-人才自荐奖金
        {
          path: '/bonus',
          name: 'bonus',
          component: () =>
            import('./views/bonus/bonus.vue')
        },
        //    沟通-企业沟通
        {
          path: '/CorporateCom',
          name: 'CorporateCom',
          component: () =>
            import('./views/CorporateCom/CorporateCom.vue')
        },
        //    沟通-人才沟通  TalentCommuni
        {
          path: '/TalentCommuni',
          name: 'TalentCommuni',
          component: () =>
            import('./views/TalentCommuni/TalentCommuni.vue')
        },
        //    权限管理-平台用户管理
        {
          path: '/Platform',
          name: 'Platform',
          component: () =>
            import('./views/Platform/Platform.vue')
        },
        //角色管理
        {
          path: '/RoleManagement',
          name: 'RoleManagement',
          component: () =>
            import('./views/RoleManagement/RoleManagement.vue')
        },
        //角色设置
        {
          path: '/CharacterSet',
          name: 'CharacterSet',
          component: () =>
            import('./views/CharacterSet/CharacterSet.vue')
        },
        //     个人中心-个人信息
        {
          path: '/PersonalInfor',
          name: 'PersonalInfor',
          component: () =>
            import('./views/PersonalInfor/PersonalInfor.vue')
        },
        //  个人中心-修改登录密码
        {
          path: '/ChangePassword',
          name: 'ChangePassword',
          component: () =>
            import('./views/ChangePassword/ChangePassword.vue')
        },
        //    数据库管理-人才管理
        {
          path: '/DatabaseTalents',
          name: 'DatabaseTalents',
          component: () =>
            import('./views/DatabaseTalents/DatabaseTalents.vue')
        },
        //    数据库管理-推荐职位
        {
          path: '/RecomJob',
          name: 'RecomJob',
          component: () =>
            import('./views/DatabaseTalents/RecommendJob.vue')
        },
        {
          path: '/DatabaseTalents/details',
          name: 'DatabaseTalents',
          component: () =>
            import('./views/DatabaseTalents/details/detabasedetails.vue')
        },
        // {
        //   path: '/DatabaseTalents/details',
        //   name: 'DatabaseTalents',
        //   component: () =>
        //     import('./views/DatabaseTalents/details/index.vue')
        // },
        // 人才单条用户信息详情页
        {
          path: '/tableDetail',
          name: 'tableDetail',
          component: () =>
            import('./components/tableDetail/tableDetail.vue')
        },
        //    数据库管理-企业管理
        {
          path: '/enterpriseManage',
          name: 'enterpriseManage',
          component: () =>
            import('./views/enterpriseManage/enterpriseManage.vue')
        },
        // 企业单条用户信息详情页
        {
          path: '/tableModel',
          name: 'tableModel',
          component: () =>
            import('./components/tableModel/tableModel.vue')
        },
        //  内容管理-用户协议管理
        {
          path: '/UserAgreement',
          name: 'UserAgreement',
          component: () =>
            import('./views/UserAgreement/UserAgreement.vue')
        },
        //    内容管理-广告管理
        {
          path: '/advertising',
          name: 'advertising',
          component: () =>
            import('./views/advertising/advertising.vue'),
          children: [{
            path: '/advertising',
            name: 'advertising',
            component: () =>
              import('./views/advertising/advertising.vue'),
          }]
        },
        //   内容管理-公共字段管理
        {
          path: '/PublicFields',
          name: 'PublicFields',
          component: () =>
            import('./views/PublicFields/PublicFields.vue')
        },
        //    除执业类型外的添加列表
        {
          path: '/PracticeList',
          name: 'PracticeList',
          component: () =>
            import('./views/PracticeList/PracticeList.vue')
        },
        //    执业类型的添加一级列表
        {
          path: '/LevelTable',
          name: 'LevelTable',
          component: () =>
            import('./views/LevelTable/LevelTable.vue')
        },
        //    执业类型的添加二级列表
        {
          path: '/TableT',
          name: 'TableT',
          component: () =>
            import('./views/TableT/TableT.vue')
        },
        //  页尾管理 -关于我们
        {
          path: '/Footer',
          name: 'Footer',
          component: () =>
            import('./views/Footer/Footer.vue'),
          children: [{
              path: '/Footer/link',
              component: () => import('./views/Footer/children/link.vue')
            },
            {
              path: '/Footer/essay',
              component: () => import('./views/Footer/children/essay.vue')
            },
            {
              path: '/Footer/contact',
              component: () => import('./views/Footer/children/contact.vue')
            },
            {
              path: '/Footer/essayDetails',
              component: () => import('./views/Footer/children/essayDetails.vue')
            },
            {
              path: '/Footer/keyword',
              component: () => import('./views/Footer/children/keywords.vue')
            }
          ]
        },
        //    待审核详情
        {
          path: '/onAuditing',
          name: 'onAuditing',
          component: () => import('./views/onAuditing/onAuditing.vue')
        },
        //待沟通详情
        {
          path: '/onTalk',
          name: 'onTalk',
          component: () => import('./views/onTalk/onTalk.vue')
        },
        //人才入职详情
        {
          path: '/onBaord',
          name: 'onBaord',
          component: () => import('./views/onBaord/onBaord.vue')
        },
        //企业合作详情
        {
          path: '/onCompany',
          name: 'onCompany',
          component: () => import('./views/onCompany/onCompany.vue')
        },
        //自荐奖金详情
        {
          path: '/onOffer',
          name: 'onOffer',
          component: () => import('./views/onOffer/onOffer.vue')
        },
        //企业佣金详情

        {
          path: '/onCharges',
          name: 'onCharges',
          component: () => import('./views/onCharges/onCharges.vue')
        },
      ]
    },
    {
      path: '/',
      name: 'login',
      component: () =>
        import( /* webpackChunkName: "about" */ './views/login.vue')
      //import( /* webpackChunkName: "about" */ './views/index.vue')
    }
  ]
})